#define __TG_c

#include "includeAll.h"



void TG()
{
       if(bTG)
	   {
			if(bSecFlash500ms)
			{
				F_clrLedTG;
			}
			else
			{
				F_setLedTG;
			}
        if(D_TG)
		{
			bPeople=1;
			timer6s=6;
		}
		else
		{
			if(timer6s==0)
			{
				bPeople=0;
				F_clrLedTG;
			}
		}
	   }
	   else
	   {
			timer6s=0;
			bPeople=0;
		   F_clrLedTG;
	   }
	
}

